//----------------------------------------------------------------------------
// critsect.cpp
// 
// (C)Copyright 2003, HanbitSoft Inc. All rights reserved.
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// INCLUDES
//----------------------------------------------------------------------------
#include "stdafx.h"
#include "appcommon.h"


//-----------------------------------------------------------------------------
// CONSTANTS
//-----------------------------------------------------------------------------
unsigned int SPIN_WAIT_INTERVAL	=				512;


//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
void InitCritSectSpinWaitInterval(
	void)
{
	CPU_INFO info;
	ASSERT_RETURN(CPUInfo(info));
	if (info.m_AvailCore <= 1)
	{
		SPIN_WAIT_INTERVAL = 1;
	}
}
